package com.example.tushu.Mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.tushu.Pojo.Loan;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface LoanMapper extends BaseMapper<Loan> {

//    List<Loan>getAll();
    IPage<Loan> getPage(Page<Loan> page);

    List<Loan> find(@Param("username") String username,@Param("bookname") String bookname,@Param("status") String status,@Param("startTime") String startTime,@Param("endTime") String endTime);
}
